package com.lzj.myvideo.service;

import com.lzj.myvideo.common.ServerResponse;
import com.shortvideo.pojo.videos;
import org.springframework.web.multipart.MultipartFile;

import java.util.ArrayList;
import java.util.List;

public interface VideoServer {

    ServerResponse videoUpload(String userId, MultipartFile file);

    ServerResponse BgmUpload(String userId, MultipartFile file ,String bgmId,String seconds);

    ServerResponse coverUpload(String userId, MultipartFile file);

    ServerResponse saveVideo(videos video);

    ServerResponse queryVideo(Integer pageNum);

    ServerResponse queryVideoByVideoId(String videoId);

    ServerResponse likeVideo(String userId, String videoId);

    ServerResponse unlikeVideo(String userId, String videoId);

    Boolean islike(String userId, String videoId);

    ServerResponse queryVideoByUserId(String userId);

    ServerResponse queryUserLikeVideos(String userId);

    ServerResponse queryVideosByVideoId(ArrayList<String> list);

    void addVideoRecord(String userId, String videoId);

    List<String> queryVideoRecord(String userId);

    ServerResponse commentVideos(String userId,String videoId,String content);

    ServerResponse queryVideoComments(String videoId);


}
